READ STRING

This command will read a string from the file and store it as a string in the variable specified.

  Syntax
READ STRING File Number, Variable String
  Parameters
File Number
Integer
The file number
Variable String
String
This command will read a string from the file and store it as a string in the variable specified

  Returns

This command does not return a value.

  Description

The file specified by the file number must be open or the command will fail.

  Example Code
cls
open file to read 1,"data.dat"
read string 1,a$
close file(1)
do
loop
end
  See also

FILE Commands Menu
Index